package com.zdp.provider.service;

import com.zdp.provider.controller.CourseDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 类描述:
 *
 * @author ZhhengDP
 * @since 2021/8/17
 */
@FeignClient(name = "courseService",path = "/course_info")
public interface CourseService {

    @RequestMapping(value = "/courses",method = RequestMethod.GET)
    List<CourseDto> getCourses(@RequestParam("teacherId") Integer teacherId);
}
